<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
<link href="/resources/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="/resources/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="/resources/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerGrid.showFilter.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerFilterEx.js" type="text/javascript"></script>
<script src="/resources/js/formatDate.js" type="text/javascript"></script>
<script type="text/javascript">
        var $grid;
        $(function (){

            //创建表格对象
            $grid = $("#maingrid").ligerGrid({
                columns: [
                { name: 'uuid', hide:true,type:"text"},
                { display: '待审批任务', name: 'name', width: 400,type:"text",
                	render: function(item)
                    {
                      return "由"+item.submitUser+"提交的"+item.name+"需要您的审批，请双击进入处理。";
                    } },
                { display: '任务创建人', name: 'submitUser', width: 100,type:"text"},
                { display: '任务创建时间', name: 'submitDate', width: 100,type:"text"}
                ],
                width: '100%', height: '100%',usePager:false,
                headerRowHeight:22, rowHeight:22, rownumbers:true,
                url:'/system/showTaskMsgList',
                onDblClickRow:onDblClickRow
            });

        });
        
      //双击事件(查看)
        function onDblClickRow(data, rowindex, rowobj){
        	 window.parent.f_addTab(data.uuid,data.name+"审核 ",data.url);

        }
      //获取数据前添加过滤条件
      function onloadData(){
    	/*   applay(this.options.parms, [{ name: "cond", value: cond, temp: true }]); */
    	 //this.set('parms', [{ name: "cond", value: cond, temp: true }]);
      }
    </script>
</head>
<body  style="padding:10px">
    <div id="maingrid"></div> 
</body>
</html>
